#include <iostream>

using namespace std;

int m1(int y)
{
    return((y)*(y));
}

#define M2(y) ((y)*(y))

int main( )
{
    int i,j;
    for (i=1,j=1;i<=5;i++) cout<<m1(j++)<<" ";
    cout<<endl;

    for(i=1,j=1;i<=5;i++) cout<<M2(j++)<<" ";
    cout<<endl;

    cin>>i;
    return 0;
}